package com.mew.common.entity.back;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.util.ArrayList;

/**
 * <p>
 * 
 * </p>
 *
 * @author ztq
 * @since 2020-11-30
 */

@Data
@ToString
@TableName("b_permission")
public class Permission  {


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private String type;

    private Integer menu;

    @TableField(exist = false)
    private String menuName;

    @TableField(exist = false)
    private ArrayList<Permission> children = new ArrayList<>();

}
